<div class="layui-body">
<div class="aright">
<span class="layui-breadcrumb">
	  <a href="{:url('man/index/index')}">首页</a>
	  <a href="{:url('man/article/index')}">题目管理</a>
	  <a href="{:url('man/article/item',['nid'=>$map.nid,'nceng'=>1])}">选项列表</a>
	  <a><cite>添加选项</cite></a>
	</span>
<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
   
  <div class="layui-tab-content">
     
    <div class="layui-tab-item layui-show">
	<form class="layui-form bform" method="post" action="{:url('man/article/additem')}" enctype="multipart/form-data">
	  <input type="hidden" name="nid" value="{$map.nid}">
	  {eq name="$map.nceng" value="2"}<input type="hidden" name="nnid" value="{$map.nnid}">{/eq}
	  <input type="hidden" name="nceng" value="{$map.nceng}">
	  <div class="layui-form-item">
	    <label class="layui-form-label">题目标题：</label>
	    <div class="layui-input-block">
	      <input type="text" name="iname" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	    {eq name="$map.nceng" value="2"}
	<div class="layui-form-item">
	    <label class="layui-form-label">选项分数：</label>
	    <div class="layui-input-block">
	      <input type="text" name="nzhi" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	{/eq}
	{eq name="$map.nceng" value="1"}
	{eq name="$ntype.ntype" value="3"}
	<div class="layui-form-item">
	    <label class="layui-form-label">音乐地址：</label>
	    <div class="layui-input-block">
	      <input type="text" name="audio" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  {/eq}
	{/eq}
	  <div class="layui-form-item">
	    <label class="layui-form-label">题目图片：</label>
	     <div class="layui-input-block">
	     <div class="file-box">
	     <i class="layui-icon">&#xe61f;</i>
	     <input class="file-btn" type="button" value="选择图片">
	     <input class="file-txt" type="text" autocomplete="off" name="iimage" id="textfield" value="">
	     <input class="file-file" type="file" name="pic" id="logo" size="28" onchange="document.getElementById('textfield').value=this.value" /> 
	     </div>
	     </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">排序：</label>
	    <div class="layui-input-block">
	      <input type="text" name="ishunxu" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	      

	  <div class="layui-form-item">
	    <div class="layui-input-block">
		  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
	      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
	    </div>
	  </div>

</form>
</div>

	<script>
  layui.use('form',function(){
     var form = layui.form();
  })
  </script>
	</div>
 </div>
  </div>
</div>
</div>
